<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : inactive.xsl
    Created on : November 18, 2013, 10:00 PM
    Author     : Liem
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:p="http://xml.netbeans.org/schema/account" exclude-result-prefixes="p"
version="1.0">
    <xsl:output method="html"/>
    <xsl:param name="username"></xsl:param>
    <xsl:param name="pageId"></xsl:param>
    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <xsl:if test="//*[p:username=$username and p:pageId=$pageId and p:role='owner']">
            <a class="btn btn-inverse"><xsl:attribute name="href">inactivePage.action?pageId=<xsl:value-of select="$pageId"/></xsl:attribute>
                Inactive
            </a>
        </xsl:if>
    </xsl:template>

</xsl:stylesheet>
